package spring.data.jpa.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.apache.commons.beanutils.Converter;

@Target({ ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface ColumnMapper {
    /**
     * Field name.
     * 
     * @return the string
     */
    String columnName() default "";
    
    /**
     * Converter.
     * 
     * @return the class<? extends converter>
     */
    Class<? extends Converter> converter() default Converter.class;
}
